DefaultCharacteristicWrapper

Default implementation of CharacteristicWrapper

Parameters

gattCharacteristic

Constructors

Link copied to clipboard
constructor(gattCharacteristic: BluetoothGattCharacteristic)

Properties

Link copied to clipboard
open override val descriptors: List<DescriptorWrapper>

The list of DescriptorWrapper of associated with the characteristic

Link copied to clipboard
open override val permissions: Int

The integer representing all permissions for the characteristic

Link copied to clipboard
open override val properties: Int

The integer representing all CharacteristicProperties of the characteristic

Link copied to clipboard
open override val service: ServiceWrapper
Link copied to clipboard
open override val uuid: UUID

The UUID of the characteristic

Link copied to clipboard
open override var value: ByteArray?

The current Value of the characteristic

Link copied to clipboard

The WriteType of the characteristic

Functions

Link copied to clipboard

Checks whether CharacteristicWrapper.properties contains any properties in property

Link copied to clipboard
open override fun getDescriptor(uuid: UUID): DescriptorWrapper?

Gets the DescriptorWrapper for the descriptor with a given java.util.UUID if it belongs to the characteristic

Link copied to clipboard
open override fun updateValue(value: ByteArray?)

Accessor for updating CharacteristicWrapper.value